 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<%@ taglib prefix="s" uri="/struts-tags"%>
<head>
</head>
<body>
<form action="createBatchEntrySet.action" method="post">
 <table cellpadding="0" cellspacing="0" border="0" class="responsive dynamicTable display table table-bordered" width="100%">
    <thead>
        <tr>
            <th style="text-align: center;" align="center">Serial</th>
            <th>Make</th>
            <th>Market</th>
            <th>Segment</th>
            <th>Status</th>
            <th>Select</th>
            <th>Execute</th>
        </tr>
    </thead>
    <tbody>
	<s:iterator value="entrySetList" id="entrySetLst" status="indx">          
    <tr>
         <td style="text-align: center;"><s:property value="#indx.count"/></td>
         <td style="text-align: center;"><s:property value="makeName" /></td>
         <td style="text-align: left;"><s:property value="marketName" /></td>
         <td style="text-align: left;"><s:property value="segmentName" /></td>
         <td style="text-align: center;" id="statusTd<s:property value='#indx.count'/>">
         <s:property value="status"  /></td>
         <td style="text-align: center;"  id="checkTd<s:property value='#indx.count'/>">
          
          <s:if test="status==null">
          	<input type="checkbox" name="entryList[<s:property value='#indx.count'/>].selected" />
          	<input type="hidden" name="entryList[<s:property value='#indx.count'/>].makeId" value="<s:property value='makeId' />" />
          	<input type="hidden" name="entryList[<s:property value='#indx.count'/>].marketId" value="<s:property value='marketId' />" />
          	<input type="hidden" name="entryList[<s:property value='#indx.count'/>].segmentId" value="<s:property value='segmentId' />" />
          	<input type="hidden" name="entryList[<s:property value='#indx.count'/>].month" value="<s:property value='month' />" />
          	<input type="hidden" name="entryList[<s:property value='#indx.count'/>].year" value="<s:property value='year' />" />
          	  
          </s:if>
         
         </td>
         <td style="text-align: center;" id="executeTd<s:property value='#indx.count'/>" >
         
          <s:if test="status==null">
          	<input type="button" name="Execute" id="Execute" onclick="createEntrySet(<s:property value="makeId" />,<s:property value="marketId" />,<s:property value="segmentId" />,<s:property value='#indx.count'/>)" value="Execute" />  
          </s:if>
          
         </td>
   </tr>
   </s:iterator>
	
	 </tbody>
</table>
<div class="form-row row-fluid">
	<div class="span12">
		<div class="row-fluid">
			<div class="form-actions">
			<div class="span12 controls">
			    <center>
					<button type="submit" class="btn marginR10">Save changes</button>
				</center>
			</div>
			</div>
		</div>
	</div> 
</div>

</form>
</body> 
</html>                                    